package ast.nodes.regexNodes;

import scanner.Token;
import ast.ASTNode;
import ast.Evaluation;

public class OpNode extends ASTNode {

    public OpNode(Token data) {
        super(data);
    }

    @Override
    public String toString(int depth) {
        String parametersStr = "";
        for (ASTNode child : getChildren()) {
            parametersStr += child.toString(depth+1);
        }

        return indent(depth) + "(" + this.data.getTokenString() + ")" + parametersStr;
    }

    @Override
    public void run(Evaluation input) throws Exception {
        // TODO Auto-generated method stub
       
    }

}